package org.example.bean;
 
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private int id;
    private Date ordertime;
    private double total;
    private int userid;

    //这个地方数据库里面的表单是"userID"，但是这里应该封装整个User对象
    private User user;

}